﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelEmployees.aspx.cs" MaintainScrollPositionOnPostback="true"
    Inherits="Train_SelEmployees" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <asp:Literal runat="server" ID="litTitle"></asp:Literal></title>

    <script language="javascript" type="text/javascript">
        function sucess(pindex) {
            alert('添加人员成功！');
            window.close();
            var temp = window.opener.location.href;
            var i = temp.indexOf("?");
            if (i != -1) {
                temp = temp.substring(0, i);
            }
            temp += '?pIndex=' + pindex;
            window.opener.location.href = temp;
        }
        function AddUser() {
            //GetUserList

            window.opener.GetUserList(document.getElementById("hide").value);
            window.close();
            //opener.document.all.txtUserList.value = document.getElementById("hide").value;

        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <INPUT id=hide type=hidden value="<%=pass()%>">
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td>
                <uc1:DepartmentDList ID="ddlDepartment" runat="server" />
                <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="筛选" />
            </td>
            <td valign="top" colspan="2"> 姓名:<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:ListBox ID="lbNoSelect" runat="server" Height="580px" Width="245px" SelectionMode="Multiple">
                </asp:ListBox>
            </td>
            <td>
                <asp:Button ID="btnSelectAll" runat="server" Height="24px" OnClick="btnSelectAll_Click"
                    Text=">>>>" Width="50px" /><br />
                <br />
                <asp:Button ID="btnSelect" runat="server" Height="24px" OnClick="btnSelect_Click"
                    Text=">>" Width="50px" /><br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <asp:Button ID="btnCancelOne" runat="server" Height="24px" OnClick="btnCancel_Click"
                    Text="<<" Width="50px" /><br />
                <br />
                <asp:Button ID="btnCancelAll" runat="server" Height="24px" OnClick="btnCancelAll_Click"
                    Text="<<<<" Width="50px" /><br />
                <br />
                <asp:Button ID="btnSave" runat="server" Height="24px" OnClick="btnSave_Click" Text="保存"
                    Width="50px" />
                <asp:Button ID="btnAdd" runat="server" Height="24px" Text="添加" Width="50px" OnClientClick="AddUser();return false" />
            </td>
            <td>
                <asp:ListBox ID="lbSelect" runat="server" Height="580px" Width="245px" SelectionMode="Multiple">
                </asp:ListBox>
            </td>
        </tr>
    </table>
    <asp:Label ID="Label1" runat="server" Visible="False"></asp:Label>
    <asp:Label ID="Label2" runat="server" Visible="False"></asp:Label></form>
</body>
</html>
